1888/rename-dense - #2064
Conversation
| #include <ginkgo/core/base/math.hpp> | ||
| #include <ginkgo/core/matrix/coo.hpp> | ||
| #include <ginkgo/core/matrix/csr.hpp> | ||
| #include <ginkgo/core/matrix/dense.hpp> |
There was a problem hiding this comment.
only renaming the header without changing anything in the rest sounds we do not need this header
There was a problem hiding this comment.
same for the other file only renaming header
There was a problem hiding this comment.
The header also include device_views.hpp which is actually used here. So I replaced the includes
| #include <memory> | ||
|
|
||
| #include <ginkgo/core/base/exception_helpers.hpp> | ||
| #include <ginkgo/core/matrix/multivector.hpp> |
There was a problem hiding this comment.
| #include <ginkgo/core/matrix/multivector.hpp> |
do we need that?
There was a problem hiding this comment.
I think this is still unresolved ? I dont think this header include is needed ?
| * matrix::MultiVector<ValueType>, otherwise it will be converted | ||
| * to this type if possible. |
There was a problem hiding this comment.
| * matrix::MultiVector<ValueType>, otherwise it will be converted | |
| * to this type if possible. | |
| * matrix::MultiVector<ValueType>, otherwise it will be converted | |
| * to this type if possible. |
| @@ -86,15 +87,15 @@ class SparsityCsr; | |||
| * @ingroup LinOp | |||
| */ | |||
| template <typename ValueType = default_precision> | |||
| class Dense | |||
| class MultiVector | |||
There was a problem hiding this comment.
because we will merge one by one, I prefer adding an alias until Dense reintroduced is merged
template <typename ValueType = default_precision>
using Dense = MultiVector<ValueType>;
but only add it when all ci are passed
There was a problem hiding this comment.
Just FYI, it will not be possible to have all PRs in this stack pass their CI. For this PR though your suggestion should work.
e5527df to
b930916
Compare
Signed-off-by: Marcel Koch <marcel.koch@kit.edu>
b930916 to
17b823e
Compare
| protected: | ||
| using value_type = T; | ||
| using size_type = gko::size_type; | ||
| using BMtx = gko::batch::matrix::Dense<value_type>; | ||
| using BMtx = gko::batch::matrix::MultiVector<value_type>; |
There was a problem hiding this comment.
These seem to be wrongly substituted. For batched files, you can maybe just skip the substitutions for now, and do targeted substitutions in a second pass ?
| @@ -71,7 +71,8 @@ class SparsityCsr; | |||
|
|
|||
|
|
|||
| /** | |||
There was a problem hiding this comment.
I think I would prefer this file to be move into include/ginkgo/core/base/ rather than in core/matrix/, similar to batch::MultiVector
| @@ -1520,22 +1534,27 @@ class Dense | |||
| }; | |||
|
|
|||
|
|
|||
| template <typename ValueType> | |||
There was a problem hiding this comment.
Should be
| template <typename ValueType> | |
| template <typename ValueType = default_precision> |
| using transposed_type = Dense<value_type>; | ||
| using mat_data = matrix_data<value_type, int64>; | ||
| using transposed_type = MultiVector<value_type>; | ||
| using mat_data64 = matrix_data<value_type, int64>; |
There was a problem hiding this comment.
Are the mat_data and device_mat_data intentional renames ?
| #define GKO_DECLARE_DENSE_CONSTRUCTOR(LocalIndexType, GlobalIndexType) \ | ||
| DenseCommunicator::DenseCommunicator( \ | ||
| communicator base, \ | ||
| #define GKO_DECLARE_MULTIVECTOR_CONSTRUCTOR(LocalIndexType, GlobalIndexType) \ |
There was a problem hiding this comment.
Incorrect substitutions in this file.
| #include <memory> | ||
|
|
||
| #include <ginkgo/core/base/exception_helpers.hpp> | ||
| #include <ginkgo/core/matrix/multivector.hpp> |
There was a problem hiding this comment.
I think this is still unresolved ? I dont think this header include is needed ?
| namespace matrix { | ||
|
|
||
|
|
||
| template <typename ValueType> | ||
| class MultiVector; | ||
|
|
||
|
|
||
| } |
There was a problem hiding this comment.
I think you need the multivector.hpp header included here instead of the forward decl, as you use the complete type below.
This PR renames Dense to MultiVector